<template>
	<view class="fun-flex-col page">
		<view class="fun-flex-col fun-justify-start section">
			<view class="fun-flex-row fun-justify-between equal-division">
				<view class="fun-flex-col fun-items-center equal-division-item">
					<text class="font_2 text_4">30,123.89</text>
					<text class="font_3 text_5 mt-9">Total Positions Today</text>
				</view>
				<view class="fun-flex-col fun-items-center equal-division-item">
					<text class="font_2">+1670.11</text>
					<text class="font_3 text_6 mt-11">Today's Profit /Loss</text>
				</view>
				<view class="fun-flex-col fun-items-center equal-division-item">
					<text class="font_2">+5.54%</text>
					<text class="fun-mt-12 font_3 text_7">Today's Yield</text>
				</view>
			</view>
		</view>
		<view class="fun-flex-col list">
			<view class="fun-flex-row fun-justify-between fun-items-center list-item list-header">
				<text class="font_4 text_8">Code</text>
				<text class="font_5">Buy Time</text>
				<text class="font_5">Buy Price</text>
				<text class="font_4 text_9">Sell Time</text>
				<text class="font_4 text_10">Sell Price</text>
				<text class="font_4 text_11">Shares</text>
				<text class="font_4">Daily</text>
			</view>
			<view class="fun-flex-row fun-justify-between fun-items-center list-item" v-for="(item, index) in items"
				:key="index">
				<text class="font_4 text_8">TSLA</text>
				<text class="font_5">10:38:34</text>
				<text class="font_5">$251.49</text>
				<text class="font_4 text_9">10:54:14</text>
				<text class="font_4 text_10">$254.31</text>
				<text class="font_4 text_11">150</text>
				<text class="font_4 text_12">+243.00</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {},
		props: {},
		data() {
			return {
				items: [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
			};
		},

		onLoad(potion) {
			this.title = potion.title
		},

		onReady() {
			uni.setNavigationBarTitle({
				title: this.title
			});
		},
		methods: {},
	};
</script>

<style scoped lang="scss">
	.ml-5 {
		margin-left: 10rpx;
	}

	.ml-39 {
		margin-left: 78rpx;
	}

	.mt-9 {
		margin-top: 18rpx;
	}

	.mt-11 {
		margin-top: 22rpx;
	}

	.page {
		padding: 32rpx 32rpx 0;
		background-color: #00033b;
		width: 100%;
		overflow-y: auto;
		overflow-x: hidden;
		height: 100%;

		.group {
			padding-left: 36rpx;

			.text {
				color: #ffffff;
				font-size: 30rpx;
				font-family: SF Pro Text;
				font-weight: 600;
			}

			.image {
				width: 34rpx;
				height: 22rpx;
			}

			.image_2 {
				width: 30rpx;
				height: 22rpx;
			}

			.image_3 {
				width: 48rpx;
				height: 22.66rpx;
			}
		}

		.group_2 {
			margin-top: 48rpx;

			.image_4 {
				width: 48rpx;
				height: 48rpx;
			}

			.text_2 {
				color: #ffffff;
				font-size: 32rpx;
				font-family: SF Pro Display;
				font-weight: 300;
			}

			.font {
				font-size: 20rpx;
				font-family: SF Pro Display;
				color: #ffffff;
			}

			.text_3 {
				margin-left: 144rpx;
				font-weight: 300;
			}
		}

		.section {
			padding: 32rpx;
			background-color: #1b1d53;
			border-radius: 16rpx;

			.equal-division {
				.equal-division-item {
					width: 33%;

					.font_2 {
						font-size: 32rpx;
						font-family: SF Pro Display;
						color: #5ceec4;
					}

					.text_4 {
						color: #53bbe8;
					}

					.font_3 {
						font-size: 26rpx;
						font-family: SF Pro Display;
						font-weight: 300;
						color: #ffffff;
					}

					.text_5 {
						text-align: center;
					}

					.text_6 {
						text-align: center;
					}

					.text_7 {
						text-align: center;
						width: 94rpx;
					}
				}
			}
		}

		.list {
			margin-top: 40rpx;

			.list-item {
				padding: 24rpx 0;
				border-bottom: solid 2rpx #b0b1bf24;

				.font_4 {
					font-size: 20rpx;
					font-family: SF Pro Display;
					color: #ffffff;
				}

				.font_5 {
					font-size: 20rpx;
					font-family: SF Pro Display;
					color: #ffffff;
				}

				.text_12 {
					color: #5CEEC4;
				}
			}
			.list-header{
				
				.font_4 {
					color: #B0B1BF;
				}
				
			}
		}
	}
</style>